package com.zzyl.service;

import com.zzyl.base.PageResponse;
import com.zzyl.dto.UserDto;
import com.zzyl.vo.UserVo;

import java.util.List;

public interface UserService {

    /**
     *  多条件查询用户表分页列表
     * @param userDto 查询条件
     * @param pageNum 页码
     * @param pageSize 每页条数
     * @return Page<User>
     */
    PageResponse<UserVo> findUserPage(UserDto userDto, int pageNum, int pageSize);

    UserVo createUser(UserDto userDto);

    int updateUser(UserDto userDto);

    UserVo getCurrentUser();

    Integer updateUserStatus(Long id, String status);

    Integer deleteUser(Long userId);

    Integer resetPassword(Long userId);

    List<UserVo> getUserList(UserDto userDto);
}
